<?php

class PaymentPeer extends BasePaymentPeer
{
  public static function getInvoiceTotal($payment_iden){
    $payment = self::retrieveByPk($payment_iden);
    if(! $payment)
      return 0;
    else
      return $payment->getInvoiceTotal();
  }
}
